age = 56
if 0 < age < 120:
    print("年龄正确")
else:
    print("年龄不正确")

pyhon_score = 80
c_score = 40
if pyhon_score > 50 or c_score > 50:
    print("成绩合格")
else:
    print("成绩不合格")

is_employee = True
if is_employee:
    print("允许入内")
else:
    print("不允许入内")

# i = 1
# sum1 = 0
# while i < 101:
#     sum1 = sum1 + i
#     i = i + 1
# print(sum1)

i = 1
sum1 = 0
while i < 101:
    if i % 2 == 0:
        sum1 = sum1 + i
    i = i + 1
print(sum1)

j = 1
sum2 = 0
while j < 101:
    if j % 2 == 1:
        sum2 = sum2 + j
    j = j + 1
print(sum2)

